import VueRouter from 'vue-router';
import Vue from "vue";
import Map from '../views/map.vue';
import Test from '../views/test.vue';
import DataCenter from '../views/dataCenter.vue';
import Login from '../views/login.vue';
import Home from '../views/home.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path:'/login',
    name: 'login',
    component: Login
  },
  {
    path:'/map',
    name: 'map',
    component: Map
  },
  {
    path:'/test',
    name: 'test',
    component: Test
  },
  {
    path:'/dataCenter',
    name: 'dataCenter',
    component: DataCenter
  },
]

const router = new VueRouter({
  mode: "history",
  routes // short for `routes: routes`
})

export default router
